get current logged-in user details in Laravel

38

get logged user id laravel -

$id = Auth::user()->id;print_r($id);

current loggedin user laravel -

$user = auth()->user();  print($user->id);print($user->name);print($user->email);

get current logged-in user details in Laravel -

$user = Auth::user();

echo $user->id;

echo $user->name;

echo $user->email;

Comments

Submit
0 Comments